package entity

type TableLog struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	OperatorId int64 `gorm:"column:operator_id;type:BIGINT" json:"operator_id"`

	Type int `gorm:"column:type;type:TINYINT" json:"type"`

	Table string `gorm:"column:table_name;type:VARCHAR(255)" json:"table_name"`

	Comment string `gorm:"column:comment;type:VARCHAR(255)" json:"comment"`

	CreatedAt string `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt string `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *TableLog) TableName() string {
	return "table_logs"
}
